package com.example.shixun.dao;

import com.example.shixun.pojo.School;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author XDW
 * @Version 1.0
 * @date 2023/6/21 12:37
 */
@Mapper
public interface SchoolDao {
    public Integer saveSchool(School school);
    public Integer deleteSchoolById(int id);
    public Integer deleteSchoolByName(String name);
    public School selectSchoolById(int id);
    public School selectSchoolByName(String name);
    public List<School> selectSchoolAll(School school);
    public Integer updateSchool(School school);
    public Integer cancelDelete(Integer id);
}
